package Service.Impl;

import Dao.CommentDao;
import Dao.Impl.CommentDaoImpl;
import Domain.Comment;
import Service.CommentService;

import java.util.List;

public class CommentServiceImpl implements CommentService {
    private CommentDao dao = new CommentDaoImpl();
    @Override
    public List<Comment> FindCommentByPid(int pid) {
        return dao.FindCommentByPid(pid);
    }

    @Override
    public void AddComment(Comment comment) {
        dao.AddComment(comment);
    }

    @Override
    public void DelComment(int id) {
        dao.DelComment(id);
    }
}
